home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!phalanx.demon.co.uk
- From: Jaspal Singh <Jas@phalanx.demon.co.uk>
- Newsgroups: comp.sys.amiga.introduction
- Subject: Re: Silly script question
- Date: Fri, 19 Jan 96 14:16:30 GMT
- Organization: ACME Chickens
- Message-ID: <9601191416.AA0009a@phalanx.demon.co.uk>
- References: <4dm9jf$duo@sue.cc.uregina.ca>
- X-NNTP-Posting-Host: phalanx.demon.co.uk
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!phalanx.demon.co.uk
-
- John Bayko (bayko@ARISTOTLE.CS.UREGINA.CA) wrote:
- : The AmigaDOS user manual doesn't say how to access the arguments
- : when a shell script is called (like in Unix csh, "echo $1" would echo
- : the first parameter). How do I do this in Amiga shell scripts, or do I
- : have to use AREXX?
-
- You don't need ARexx. All you need to do is enclose the argument within <>.
- Example script file
-
- .KEY name/A
- echo "you are called <name>"
-
- This script takes one argument and displays. Most people change the <> to
- {}.
-
- .KEY name/A
- .BRA {
- .KET }
- echo "you are called {name}"
-
- Jas
- --
- .-------------------------------------------------------------------------.
- !Email Jas@phalanx.demon.co.uk (ACME Chickens) !
- !T-Shirt saying: The only person to ever enter Parliament with honest !
- ! intensions was Guy Fawkes. !
- `-------------------------------------------------------------------------'
-
-